package com.paypal.android.b;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;

public class c extends h
  implements View.OnClickListener, e
{
  protected LinearLayout c;
  protected LinearLayout d;
  protected d e;

  public c(Context paramContext)
  {
    super(paramContext);
    setOnClickListener(this);
    setOnFocusChangeListener(this);
    this.c = new LinearLayout(paramContext);
    this.c.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
    this.c.setOrientation(0);
    this.c.setGravity(5);
    this.c.setPadding(5, 5, 5, 5);
    this.d = new LinearLayout(paramContext);
    LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams.gravity = 1;
    this.d.setLayoutParams(localLayoutParams);
    this.d.setPadding(5, 0, 5, 5);
    addView(this.c);
    addView(this.d);
    this.d.setVisibility(8);
    this.e = new d(paramContext);
    this.e.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
    this.e.a(this);
    this.e.setGravity(16);
    this.e.setVisibility(8);
    this.e.setClickable(false);
    this.e.setFocusable(false);
  }

  public void a(int paramInt)
  {
    super.a(paramInt);
    if (paramInt == 1)
    {
      this.d.setVisibility(0);
      this.e.a(1);
      return;
    }
    this.d.setVisibility(8);
    this.e.a(0);
  }

  public final void a(Drawable paramDrawable)
  {
    if (this.e == null)
      return;
    float f = (float)Math.pow(com.paypal.android.MEP.e.a().B(), 2.0D);
    int i = (int)(f * paramDrawable.getMinimumWidth());
    int j = (int)(f * paramDrawable.getMinimumHeight());
    this.e.a(1, paramDrawable);
    this.e.setLayoutParams(new LinearLayout.LayoutParams(i, j));
  }

  public final void b(Drawable paramDrawable)
  {
    if (this.e == null)
      return;
    float f = (float)Math.pow(com.paypal.android.MEP.e.a().B(), 2.0D);
    int i = (int)(f * paramDrawable.getMinimumWidth());
    int j = (int)(f * paramDrawable.getMinimumHeight());
    this.e.a(0, paramDrawable);
    this.e.setLayoutParams(new LinearLayout.LayoutParams(i, j));
  }

  public final void b(boolean paramBoolean)
  {
    if (paramBoolean)
    {
      setClickable(true);
      setFocusable(true);
      this.e.setVisibility(0);
      return;
    }
    setClickable(false);
    setFocusable(false);
    this.e.setVisibility(8);
    this.d.setVisibility(8);
  }

  public final void d()
  {
    int i = 1;
    if (this.f == i)
      i = 0;
    a(i);
  }

  public void onClick(View paramView)
  {
    this.e.onClick(this.e);
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.b.c
 * JD-Core Version:    0.6.2
 */